 <script  language="javascript"  type="text/javascript">
<!-- Begin
function parolakontrol() {
var invalid = " "; // Invalid character is a space
var minLength = 6; // Minimum length
var pw1 = document.parola.frm_password1.value;
var pw2 = document.parola.frm_password2.value;
// check for a value in both fields.
if (pw1 == '' || pw2 == '') {
alert('Lütfen Parolayı iki kere giriniz.');
return false;
}
// check for minimum length
if (document.parola.frm_password1.value.length < minLength) {
alert('Your password must be at least ' + minLength + ' characters long. Try again.');
return false;
}
// check for spaces
if (document.parola.frm_password1.value.indexOf(invalid) > -1) {
alert("Sorry, spaces are not allowed.");
return false;
}
else {
if (pw1 != pw2) {
alert ("Parolanız iki kez girilmemiş.");
return false;
}
else {
alert('Nice job.');
return true;
      }
   }
}
//  End -->
</script>
